
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport"  content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>E-XPay聚合支付中心</title>
    <script src="http://cdn.chiship.cn/jquery/1.8.3/jquery.min.js"></script>

    <style>
        body {
            margin: 0px;
            padding: 0px;
            background-color: #F4F4F4;
            color: #333333;
            font-size: 16px;
        }

        .clear {
            clear: both;
        }

        .main {
            margin-top: 12px;
        }

        .card {
            background-color: #FFFFFF;
            padding: 14px;
        }

        .card .row {
            padding-top: 8px;
            padding-bottom: 8px
        }

        .main .address {
            font-size: 12px;
            color: #808080;
            line-height: 20px;
        }

        .card .row .left {
            width: 100px;
        }

        .card .row .left, .card .row .right {
            float: left;
        }
        .footer{
            margin: 16px auto 0px;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            position: fixed;
            z-index: 10;
            width: 100%;
            bottom: 0;
        }
        .note-help{
            color: #959595;
            font-size: 12px;
            margin-bottom: 60px;
            margin-top: 16px;
            text-align: center;
        }
        .footer .new-btn-login{
            margin: auto 16px;
        }
        .footer .new-btn-login{
            width: 100%;
            margin-bottom: 15px;
        }
        .footer .new-btn-login button{
            background-color: #02AAF2;
            border: none;
            width: 100%;
            height: 50px;
            color: #ffffff;
            font-size: 18px;
            border-radius: 12px;
        }
        .show img {
            width: 28px;
            height: 28px;
            margin-left: 10px;
            margin-right: 10px;
            border: 0;
            vertical-align: middle;
        }
        .show li {
            width: 100%;
            height: 40px;
            list-style: none;
            background: #fff;
            border-bottom: 1px solid #eee;
        }
        .show label {
            width: 100%;
            display: inline-block;
            margin-top: 5px;
        }
        .show input[type="radio"]:checked + span {
            border: 1px solid #66c068;
            border-radius: 20px;
            background: url(http://cdn.chiship.cn/images/checkbox-on.png) no-repeat;
            background-size: 20px 20px;
        }
        .show input[type="radio"] + span {
            border: 1px solid #CCCCCC;
            border-radius: 20px;
            width: 20px;
            height: 20px;
            float: right;
            margin-right: 20px;
        }
        .show input[type="radio"] {
            display: none;
        }
    </style>
</head>
<body>
<div class="main"><#--${HOST!}-->
    <form action="http://192.168.2.112:1114/pay/doPay" method=post>
        <div class="card" style="margin-top: 8pt;">
            <input id="orderId" name="orderId" type="hidden" value="${orderHeader.merchantOrderId}"/>
            <div class="row">
                <div class="left">商户订单号：</div>
                <div class="right">
                ${orderHeader.merchantOrderId}
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="card" style="margin-top: 1pt">
            <div class="row">
                <div class="left">订单名称：</div>
                <div class="right">${orderHeader.orderName}</div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="card" style="margin-top: 1pt">
            <div class="row">
                <div class="left">订单描述：</div>
                <div class="right">${orderHeader.orderDesc}</div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="card" style="margin-top: 1pt">
            <div class="row">
                <div class="left">付款金额：</div>
                <div class="right">
                    ￥<font style="color: red;font-size: 20px">${orderHeader.grandTotal}</font>&nbsp;&nbsp;/&nbsp;&nbsp;${orderHeader.currencyUom}
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="card" style="margin-top: 1pt">
            <div class="row">
                <div class="left">支付渠道：</div>
                <div class="right">
                    <div class="pay">
                        <div class="show">
                            <#list merchantPaymentConfigs as merchantPaymentConfig>
                                <#assign channelMethod=merchantPaymentConfig.channelAttr />
                                <li>
                                    <label>
                                        <#if channelMethod=='alipay_wap'>
                                            <img src="http://cdn.chiship.cn/images/aliPay.png">

                                            支付宝支付
                                            <input name="channelId" type="radio" value="${merchantPaymentConfig.id}" checked="">
                                            <span></span>
                                        </#if>

                                    </label>
                                </li>
                            </#list>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="note-help">如果您点击“付款”按钮，即表示您同意该次的执行操作。</div>
        <div  class="footer">
            <div  class="new-btn-login">
             <#if orderHeader.orderStatus=='0'>
                <button type="submit"  style="text-align: center;">去 付 款</button>
            </#if>
            <#if orderHeader.orderStatus!='0'>
                <button type="button"   style="text-align: center;">已 付 款</button>
            </#if>
            </div>
        </div>
    </form>
</div>
<script>
    $(".right").css("width", (document.body.clientWidth - 130) + "px");
</script>
</body>
</html>
